const routers = [{
        path: '/index',
        meta: {
            title: '首页'
        },
        component: (resolve) => require(['./views/index.vue'], resolve),
        children:[
            {
              path:'userlist',
              name:'用户列表',
              component: (resolve) => require(['./views/userlist.vue'], resolve),
            },
            {
                path:'marketcommoditylist',
                name:'享堂集市列表',
                component: (resolve) => require(['./views/marketcommoditylist.vue'], resolve),
            },
            {
                path:'collegecommoditylist',
                name:'享堂集市列表',
                component: (resolve) => require(['./views/collegecommoditylist.vue'], resolve),
            },
            {
                path:'academycommoditylist',
                name:'享堂集市列表',
                component: (resolve) => require(['./views/academycommoditylist.vue'], resolve),
            },
            {
                path:'editcategory',
                name:'编辑商品类别',
                component: (resolve) => require(['./views/editcategory.vue'], resolve),
            },
            {
                path:'editproperty',
                name:'系统配置',
                component: (resolve) => require(['./views/editproperty.vue'], resolve),
            },
            {
                path:'advertisement',
                name:'广告配置',
                component: (resolve) => require(['./views/advertisementlist.vue'], resolve),
            },
            {
                path:'addadvertisement',
                name:'添加广告栏',
                component: (resolve) => require(['./views/addadvertisement.vue'], resolve),
            },
            {
                path:'editadvertisement',
                name:'添加广告栏',
                component: (resolve) => require(['./views/editadvertisement.vue'], resolve),
            },
            {
                path:'orderlist',
                name:'添加广告栏',
                component: (resolve) => require(['./views/orderlist.vue'], resolve),
            },
            {
                path:'orderinfo',
                name:'添加广告栏',
                component: (resolve) => require(['./views/orderinfo.vue'], resolve),
            },
            {
                path:'helplist',
                name:'小程序帮助列表',
                component: (resolve) => require(['./views/helplist.vue'], resolve),
            },
            {
                path:'edithelp',
                name:'编辑帮助',
                component: (resolve) => require(['./views/edithelp.vue'], resolve),
            },
            {
                path:'editbeanproperty',
                name:'配置奖励',
                component: (resolve) => require(['./views/editbeanproperty.vue'], resolve),
            },
            {
                path:'studentlist',
                name:'配置奖励',
                component: (resolve) => require(['./views/studentlist.vue'], resolve),
            },
            {
                path:'editmarketcommodity',
                name:'编辑商品',
                component: (resolve) => require(['./views/editmarketcommodity.vue'], resolve),
            },
            {
                path:'editcollegecommodity',
                name:'编辑商品',
                component: (resolve) => require(['./views/editcollegecommodity.vue'], resolve),
            },
            {
                path:'editacademycommodity',
                name:'编辑商品',
                component: (resolve) => require(['./views/editacademycommodity.vue'], resolve),
            },

            {
                path:'addHelp',
                name:'添加帮助',
                component: (resolve) => require(['./views/addHelp.vue'], resolve),
            },
            {
                path:'schoolList',
                name:'添加帮助',
                component: (resolve) => require(['./views/schoolList.vue'], resolve),
            },
            {
                path:'addSchool',
                name:'添加帮助',
                component: (resolve) => require(['./views/addSchool.vue'], resolve),
            },
            {
                path:'editSchool',
                name:'添加帮助',
                component: (resolve) => require(['./views/editSchool.vue'], resolve),
            }
            
        ]
    },{
        path: '/',
        meta: {
            title: '登录界面'
        },
        component: (resolve) => require(['./views/login.vue'], resolve),
    }
];
export default routers;